package com.linq.cool.api.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.linq.cool.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Author: yqlin
 * @Date: 2021/2/5 19:02
 * @Description: 客户统计信息子表
 * @Version: 1.0.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "beauty_member_item")
public class BeautyMemberItem extends BaseEntity {
    /**
     * 主键ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户ID
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableField(value = "member_id")
    private Long memberId;

    /**
     * 客户真实姓名(冗余使用)
     */
    @TableField(value = "member_real_name")
    private String memberRealName;

    /**
     * 客户手机号(冗余使用)
     */
    @TableField(value = "member_phone")
    private String memberPhone;
    /**
     * 累计充值金额
     */
    @TableField(value = "top_up_amount")
    private BigDecimal topUpAmount;

    /**
     * 充值次数
     */
    @TableField(value = "top_up_count")
    private Integer topUpCount;

    /**
     * 累计消费金额
     */
    @TableField(value = "consume_amount")
    private BigDecimal consumeAmount;

    /**
     * 累计退费金额
     */
    @TableField(value = "refund_amount")
    private BigDecimal refundAmount;

    /**
     * 退费次数
     */
    @TableField(value = "refund_count")
    private Integer refundCount;

    /**
     * 订单数量
     */
    @TableField(value = "order_count")
    private Integer orderCount;

    /**
     * 优惠券数量
     */
    @TableField(value = "coupon_count")
    private Integer couponCount;

    /**
     * 评价数量
     */
    @TableField(value = "comment_count")
    private Integer commentCount;
}